package org.yin.hang.dao;

import org.apache.ibatis.annotations.Param;
import org.yin.hang.pojo.Kehugl;

import java.util.List;

public interface KehuglDao extends CommonDao<Kehugl,Integer>  {
    public void addUserRole(@Param("userId") int userId,@Param("roleIds") int[] roleIds);
    public List<Kehugl> getAll();


    /**
     * 分页查询数据
     * @return
     */
    public List<Kehugl> getList();


    /**
     * 按条件分页查新数据
     * @param condition
     * @return
     */
    public List<Kehugl> getConditionList(@Param("condition") Kehugl condition);
}
